package com.flurry.android;

import android.content.Context;
import android.text.TextUtils;
import java.io.File;
import java.util.UUID;

public class FlurryDataSenderBlockInfo
{
  private File au = null;
  private String gh = null;
  private long gi = -1L;
  private int gj = -1;

  public FlurryDataSenderBlockInfo(Context paramContext)
  {
    this.gh = UUID.randomUUID().toString();
    this.au = paramContext.getFileStreamPath(".flurrydatasenderblock." + this.gh);
  }

  public FlurryDataSenderBlockInfo(Context paramContext, String paramString)
  {
    this.gh = paramString;
    this.au = paramContext.getFileStreamPath(".flurrydatasenderblock." + this.gh);
  }

  public boolean deletePersistentData()
  {
    if (this.au.exists())
    {
      if (this.au.delete())
      {
        cy.c("FlurryDataSenderBlockInfo", "Deleted persistence file");
        this.gi = -1L;
        this.gj = -1;
        return true;
      }
      cy.d("FlurryDataSenderBlockInfo", "Cannot delete persistence file");
    }
    return false;
  }

  public boolean exists()
  {
    if (TextUtils.isEmpty(this.gh));
    while ((this.au == null) || (!this.au.exists()))
      return false;
    return true;
  }

  public long getCreationDate()
  {
    return this.gi;
  }

  // ERROR //
  public byte[] getData()
  {
    // Byte code:
    //   0: aconst_null
    //   1: astore_1
    //   2: invokestatic 97	android/os/Looper:myLooper	()Landroid/os/Looper;
    //   5: invokestatic 100	android/os/Looper:getMainLooper	()Landroid/os/Looper;
    //   8: if_acmpne +10 -> 18
    //   11: ldc 66
    //   13: ldc 102
    //   15: invokestatic 79	com/flurry/android/cy:d	(Ljava/lang/String;Ljava/lang/String;)V
    //   18: aload_0
    //   19: getfield 27	com/flurry/android/FlurryDataSenderBlockInfo:au	Ljava/io/File;
    //   22: invokevirtual 61	java/io/File:exists	()Z
    //   25: ifeq +122 -> 147
    //   28: ldc 66
    //   30: new 39	java/lang/StringBuilder
    //   33: dup
    //   34: invokespecial 40	java/lang/StringBuilder:<init>	()V
    //   37: ldc 104
    //   39: invokevirtual 46	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   42: aload_0
    //   43: getfield 27	com/flurry/android/FlurryDataSenderBlockInfo:au	Ljava/io/File;
    //   46: invokevirtual 107	java/io/File:getAbsolutePath	()Ljava/lang/String;
    //   49: invokevirtual 46	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   52: invokevirtual 47	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   55: invokestatic 110	com/flurry/android/cy:e	(Ljava/lang/String;Ljava/lang/String;)V
    //   58: new 112	java/io/DataInputStream
    //   61: dup
    //   62: new 114	java/io/FileInputStream
    //   65: dup
    //   66: aload_0
    //   67: getfield 27	com/flurry/android/FlurryDataSenderBlockInfo:au	Ljava/io/File;
    //   70: invokespecial 117	java/io/FileInputStream:<init>	(Ljava/io/File;)V
    //   73: invokespecial 120	java/io/DataInputStream:<init>	(Ljava/io/InputStream;)V
    //   76: astore_2
    //   77: aload_2
    //   78: invokevirtual 124	java/io/DataInputStream:readUnsignedShort	()I
    //   81: istore 5
    //   83: iload 5
    //   85: ifne +9 -> 94
    //   88: aload_2
    //   89: invokestatic 130	com/flurry/android/fl:a	(Ljava/io/Closeable;)V
    //   92: aconst_null
    //   93: areturn
    //   94: iload 5
    //   96: newarray byte
    //   98: astore_1
    //   99: aload_2
    //   100: aload_1
    //   101: invokevirtual 134	java/io/DataInputStream:readFully	([B)V
    //   104: aload_2
    //   105: invokevirtual 124	java/io/DataInputStream:readUnsignedShort	()I
    //   108: pop
    //   109: aload_2
    //   110: invokestatic 130	com/flurry/android/fl:a	(Ljava/io/Closeable;)V
    //   113: aload_1
    //   114: areturn
    //   115: astore_3
    //   116: aconst_null
    //   117: astore_2
    //   118: ldc 66
    //   120: ldc 136
    //   122: aload_3
    //   123: invokestatic 140	com/flurry/android/cy:b	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   126: aload_2
    //   127: invokestatic 130	com/flurry/android/fl:a	(Ljava/io/Closeable;)V
    //   130: aload_1
    //   131: areturn
    //   132: astore 7
    //   134: aconst_null
    //   135: astore_2
    //   136: aload 7
    //   138: astore 4
    //   140: aload_2
    //   141: invokestatic 130	com/flurry/android/fl:a	(Ljava/io/Closeable;)V
    //   144: aload 4
    //   146: athrow
    //   147: ldc 66
    //   149: ldc 142
    //   151: invokestatic 110	com/flurry/android/cy:e	(Ljava/lang/String;Ljava/lang/String;)V
    //   154: aconst_null
    //   155: areturn
    //   156: astore 4
    //   158: goto -18 -> 140
    //   161: astore_3
    //   162: goto -44 -> 118
    //
    // Exception table:
    //   from	to	target	type
    //   58	77	115	java/lang/Throwable
    //   58	77	132	finally
    //   77	83	156	finally
    //   94	109	156	finally
    //   118	126	156	finally
    //   77	83	161	java/lang/Throwable
    //   94	109	161	java/lang/Throwable
  }

  public int getDataSize()
  {
    return this.gj;
  }

  public String getIdentifier()
  {
    return this.gh;
  }

  // ERROR //
  public boolean setData(byte[] paramArrayOfByte)
  {
    // Byte code:
    //   0: iconst_0
    //   1: istore_2
    //   2: invokestatic 97	android/os/Looper:myLooper	()Landroid/os/Looper;
    //   5: invokestatic 100	android/os/Looper:getMainLooper	()Landroid/os/Looper;
    //   8: if_acmpne +10 -> 18
    //   11: ldc 66
    //   13: ldc 148
    //   15: invokestatic 79	com/flurry/android/cy:d	(Ljava/lang/String;Ljava/lang/String;)V
    //   18: ldc 66
    //   20: new 39	java/lang/StringBuilder
    //   23: dup
    //   24: invokespecial 40	java/lang/StringBuilder:<init>	()V
    //   27: ldc 150
    //   29: invokevirtual 46	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   32: aload_0
    //   33: getfield 27	com/flurry/android/FlurryDataSenderBlockInfo:au	Ljava/io/File;
    //   36: invokevirtual 107	java/io/File:getAbsolutePath	()Ljava/lang/String;
    //   39: invokevirtual 46	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   42: invokevirtual 47	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   45: invokestatic 110	com/flurry/android/cy:e	(Ljava/lang/String;Ljava/lang/String;)V
    //   48: aload_0
    //   49: getfield 27	com/flurry/android/FlurryDataSenderBlockInfo:au	Ljava/io/File;
    //   52: invokestatic 155	com/flurry/android/an:a	(Ljava/io/File;)Z
    //   55: istore 6
    //   57: iload 6
    //   59: ifne +9 -> 68
    //   62: aconst_null
    //   63: invokestatic 130	com/flurry/android/fl:a	(Ljava/io/Closeable;)V
    //   66: iconst_0
    //   67: ireturn
    //   68: new 157	java/io/DataOutputStream
    //   71: dup
    //   72: new 159	java/io/FileOutputStream
    //   75: dup
    //   76: aload_0
    //   77: getfield 27	com/flurry/android/FlurryDataSenderBlockInfo:au	Ljava/io/File;
    //   80: invokespecial 160	java/io/FileOutputStream:<init>	(Ljava/io/File;)V
    //   83: invokespecial 163	java/io/DataOutputStream:<init>	(Ljava/io/OutputStream;)V
    //   86: astore 4
    //   88: aload_1
    //   89: arraylength
    //   90: istore 7
    //   92: aload 4
    //   94: iload 7
    //   96: invokevirtual 167	java/io/DataOutputStream:writeShort	(I)V
    //   99: aload 4
    //   101: aload_1
    //   102: invokevirtual 170	java/io/DataOutputStream:write	([B)V
    //   105: aload 4
    //   107: iconst_0
    //   108: invokevirtual 167	java/io/DataOutputStream:writeShort	(I)V
    //   111: iconst_1
    //   112: istore_2
    //   113: aload_0
    //   114: iload 7
    //   116: putfield 25	com/flurry/android/FlurryDataSenderBlockInfo:gj	I
    //   119: aload_0
    //   120: invokestatic 175	java/lang/System:currentTimeMillis	()J
    //   123: putfield 23	com/flurry/android/FlurryDataSenderBlockInfo:gi	J
    //   126: aload 4
    //   128: invokestatic 130	com/flurry/android/fl:a	(Ljava/io/Closeable;)V
    //   131: iload_2
    //   132: ireturn
    //   133: astore 5
    //   135: aconst_null
    //   136: astore 4
    //   138: ldc 66
    //   140: ldc 177
    //   142: aload 5
    //   144: invokestatic 140	com/flurry/android/cy:b	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   147: aload 4
    //   149: invokestatic 130	com/flurry/android/fl:a	(Ljava/io/Closeable;)V
    //   152: iload_2
    //   153: ireturn
    //   154: astore_3
    //   155: aconst_null
    //   156: astore 4
    //   158: aload 4
    //   160: invokestatic 130	com/flurry/android/fl:a	(Ljava/io/Closeable;)V
    //   163: aload_3
    //   164: athrow
    //   165: astore_3
    //   166: goto -8 -> 158
    //   169: astore 5
    //   171: goto -33 -> 138
    //
    // Exception table:
    //   from	to	target	type
    //   48	57	133	java/lang/Throwable
    //   68	88	133	java/lang/Throwable
    //   48	57	154	finally
    //   68	88	154	finally
    //   88	111	165	finally
    //   113	126	165	finally
    //   138	147	165	finally
    //   88	111	169	java/lang/Throwable
    //   113	126	169	java/lang/Throwable
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.FlurryDataSenderBlockInfo
 * JD-Core Version:    0.6.2
 */